package com.zc.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zc.enums.StatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @description:
 * @author: cong
 * @create: 2024/8/7
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Staff implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /*
    * 主键id
     */
    private Integer id;

    /*
    * 员工姓名
     */
    private String name;

    /*
    * 年龄
     */
    private Integer age;

    /*
    * 工资
    */
    private BigDecimal salary;

    /*
    * 爱好
    */
    private List<Hobby> hobby;

    /*
    * 员工状态
    */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private StatusEnum status;

    /*
    * 员工订单
    */
    private List<Order> orders;

}
